package com.hjm.project.posRequestdata.posRequestdata.domain;

import com.hjm.framework.aspectj.lang.annotation.Excel;
import com.hjm.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 终端请求对象 pos_requestdata
 * 
 * @author LOVE
 * @date 2020-11-27
 */
public class PosRequestdata extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 五表关联字段。唯一凭证号 */
    private Long serial;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String postype;

    /** 商户号，汇卡商户号或者系统商户号，会为所有的商户生成交易商户号 */
    @Excel(name = "商户号，汇卡商户号或者系统商户号，会为所有的商户生成交易商户号")
    private String merNo;

    /** 交易日期yyyy-MM-dd */
    @Excel(name = "交易日期yyyy-MM-dd")
    private String localdate;

    /** 交易时间HH24:mm:ss */
    @Excel(name = "交易时间HH24:mm:ss")
    private String localtime;

    /** 交易卡号 */
    @Excel(name = "交易卡号")
    private String pan;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private String amount;

    /** 终端流水号 */
    @Excel(name = "终端流水号")
    private String stan;

    /** 原始凭证号/流水号 */
    @Excel(name = "原始凭证号/流水号")
    private String trackingno;

    /** 系统标识，1:165/2:180 */
    @Excel(name = "系统标识，1:165/2:180")
    private Long syschar;

    /** 输入方式（区分磁条芯片卡） */
    @Excel(name = "输入方式", readConverterExp = "区=分磁条芯片卡")
    private String inputtype;

    /** 交易标识：S0、D1 */
    @Excel(name = "交易标识：S0、D1")
    private String dealtype;

    /** 电子签名数据 */
    @Excel(name = "电子签名数据")
    private String signature;

    /** 终端号，汇卡终端号或者系统终端号，会为所有的商户生成交易终端号，与S/N表绑定 */
    @Excel(name = "终端号，汇卡终端号或者系统终端号，会为所有的商户生成交易终端号，与S/N表绑定")
    private String terno;
    @Excel(name = "交易定位地址")
    private String tradeadr;

    public String getTradeadr() {
        return tradeadr;
    }

    public void setTradeadr(String tradeadr) {
        this.tradeadr = tradeadr;
    }

    public void setSerial(Long serial)
    {
        this.serial = serial;
    }

    public Long getSerial()
    {
        return serial;
    }
    public void setPostype(String postype)
    {
        this.postype = postype;
    }

    public String getPostype()
    {
        return postype;
    }
    public void setMerNo(String merNo)
    {
        this.merNo = merNo;
    }

    public String getMerNo()
    {
        return merNo;
    }
    public void setLocaldate(String localdate)
    {
        this.localdate = localdate;
    }

    public String getLocaldate()
    {
        return localdate;
    }
    public void setLocaltime(String localtime)
    {
        this.localtime = localtime;
    }

    public String getLocaltime()
    {
        return localtime;
    }
    public void setPan(String pan)
    {
        this.pan = pan;
    }

    public String getPan()
    {
        return pan;
    }
    public void setAmount(String amount)
    {
        this.amount = amount;
    }

    public String getAmount()
    {
        return amount;
    }
    public void setStan(String stan)
    {
        this.stan = stan;
    }

    public String getStan()
    {
        return stan;
    }
    public void setTrackingno(String trackingno)
    {
        this.trackingno = trackingno;
    }

    public String getTrackingno()
    {
        return trackingno;
    }
    public void setSyschar(Long syschar)
    {
        this.syschar = syschar;
    }

    public Long getSyschar()
    {
        return syschar;
    }
    public void setInputtype(String inputtype)
    {
        this.inputtype = inputtype;
    }

    public String getInputtype()
    {
        return inputtype;
    }
    public void setDealtype(String dealtype)
    {
        this.dealtype = dealtype;
    }

    public String getDealtype()
    {
        return dealtype;
    }
    public void setSignature(String signature)
    {
        this.signature = signature;
    }

    public String getSignature()
    {
        return signature;
    }
    public void setTerno(String terno)
    {
        this.terno = terno;
    }

    public String getTerno()
    {
        return terno;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("serial", getSerial())
            .append("postype", getPostype())
            .append("merNo", getMerNo())
            .append("localdate", getLocaldate())
            .append("localtime", getLocaltime())
            .append("pan", getPan())
            .append("amount", getAmount())
            .append("stan", getStan())
            .append("trackingno", getTrackingno())
            .append("syschar", getSyschar())
            .append("inputtype", getInputtype())
            .append("dealtype", getDealtype())
            .append("signature", getSignature())
            .append("terno", getTerno())
            .toString();
    }
}
